<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>注册页面</title>
	<link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
    <link type="text/css" rel="stylesheet" href="css/style.css" th:href="@{/css/style.css}">
    <script type="text/javascript" th:src="@{/script/jquery-1.7.2.js}" src="script/jquery-1.7.2.js"></script>
    <script type="text/javascript" src="webjars/jquery/3.5.0/jquery.js"></script>
    <script type="text/javascript" th:inline="javascript">
        /*<![CDATA[*/

        function isSubmitb() {
            if ([[${msg}]] == null) {

            } else {
                alert([[${msg}]]);
            }


        }


        /*]]>*/
    </script>
    <!--		<script type="text/javascript">-->
    <!--			// 页面加载完成之后-->
    <!--			$(function () {-->
    <!--				// 给注册绑定单击事件-->
    <!--				$("#sub_btn").click(function () {-->
    <!--					alert("成功");-->
    <!--					var nameText= $("#name").val();-->
    <!--					if (nameText==null){-->
    <!--						$("span.errorMsg").text("用户名不能为空");-->
    <!--						return false;-->
    <!--					}-->


    <!--					// 验证确认密码：和密码相同-->
    <!--					// 获取用户名输入框里的内容-->
    <!--					var passwordText = $("#password").val();-->
    <!--					//1 获取确认密码内容-->
    <!--					var repwdText = $("#repwd").val();-->
    <!--					//2 和密码相比较-->
    <!--					if (repwdText != passwordText) {-->
    <!--						//3 提示用户-->
    <!--						$("span.errorMsg").text("确认密码和密码不一致！");-->

    <!--						return false;-->
    <!--					}-->


    <!--					// 去掉错误信息-->
    <!--					$("span.errorMsg").text("");-->

    <!--				});-->

    <!--			});-->

    <!--		</script>-->
    <style type="text/css">
        .login_form {
            height: 420px;
            margin-top: 25px;
        }

    </style>
</head>
<body>
<nav class="navbar navbar-default navbar-static-top">
	<div class="container ">
		<div class="navbar-header ">

			<a class="navbar-brand" href="#">数据集的查询系统</a>
		</div>
		<div id="navbar" class="navbar-collapse collapse ">
			<ul class="nav navbar-nav navbar-right">
				<li><a th:href="@{/login}">登录</a></li>
				<li><a th:href="@{/}">返回首页</a></li>
			</ul>
		</div><!--/.nav-collapse -->
	</div>
</nav>
<!--<div id="login_header">-->
<!--</div>-->

<div class="login_banner">

    <div id="l_content">
    </div>

    <div id="content">
        <div class="login_form">
            <div class="login_box">
                <div class="tit">
                    <h1>注册</h1>
                    <span class="errorMsg"></span>
                </div>
                <div class="form">
                    <form action="http://localhost:8080" th:action="@{/user/user/regist}" method="post">
                        <label>用户名称：</label>
                        <input class="itxt" type="text" placeholder="请输入用户名"
                               autocomplete="off" tabindex="1" name="name" id="name"/>
                        <br/>
                        <br/>
                        <label>用户密码：</label>
                        <input class="itxt" type="password" placeholder="请输入密码"
                               autocomplete="off" tabindex="1" name="password" id="password"/>
                        <br/>
                        <br/>
                        <!--									<label>状态码：</label>-->
                        <!--									<input class="itxt" type="checkbox" placeholder=""-->
                        <!--										   autocomplete="off" tabindex="1" name="repwd" id="repwd" />-->
                        <!--									<br />-->
                        <!--									<br />-->
                        <label>手机号：</label>
                        <input class="itxt" type="text" placeholder="请输入手机号"
                               autocomplete="off" tabindex="1" name="phone" id="phone"/>

                        <br/>
                        <br/>
                        <input type="submit" value="注册" id="sub_btn" class="sub_regist" onclick="isSubmitb()"/>
                    </form>
                </div>

            </div>
        </div>
    </div>
</div>
<div id="bottom">
			<span>
			</span>
</div>
</body>
</html>